package com.ai.dmc.index.base.impl.cacheConfig;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ai.dmc.index.base.impl.base.BaseServiceImpl;
import com.ai.dmc.index.intf.service.cacheConfig.ICacheConfigService;

/**
 * 
* Title： 系统缓存配置servie实现类
* Description： 查询系统缓存配置
* Copyright：Copyright (c) 2009
* Company：亚信智慧数据（中国）有限公司
* @author chensen, 2016年1月11日
* @version 1.0
 */
public class CacheConfigServiceImpl extends BaseServiceImpl implements ICacheConfigService{
	private static final String NAMESPACE = "CacheConfigMapper.";
	@Override
	public List<Map<String, String>> getCacheConfigInfo() {
		List<Map<String, String>> cacheConfigInfoList = getBaseDao().queryForList(NAMESPACE+"getCacheConfigInfo", null);
		return cacheConfigInfoList;
	}
	
	@Override
	public List<Map<String, Object>> getCacheConfigInfoDynic() {
		List<Map<String, Object>> cacheConfigInfoList = getBaseDao().queryForListByObjectMap(NAMESPACE+"getCacheConfigInfoDynic", null);
		return cacheConfigInfoList;
	}

	@Override
	public List<Map<String, Object>> executeSql(String sql) {
		Map<String,Object> paramMap = new HashMap<String,Object>();
		paramMap.put("sql", sql);
		List<Map<String, Object>> resultList = getBaseDao().queryForListByObjectMap(NAMESPACE+"executeSql", paramMap);
		return resultList;
	}

}
